@model ShivamEMR.Model.Domain.PatientDomain.Admission

@{
    ViewBag.Title = "Details";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Details</h2>

<fieldset>
    <legend>Admission</legend>

    <div class="display-label">AdmissionDateAndTime</div>
    <div class="display-field">@String.Format("{0:g}", Model.AdmissionDateAndTime)</div>

    <div class="display-label">ReferrerNotes</div>
    <div class="display-field">@Model.ReferrerNotes</div>

    <div class="display-label">Notes</div>
    <div class="display-field">@Model.Notes</div>

    <div class="display-label">DischargeDateAndTime</div>
    <div class="display-field">@String.Format("{0:g}", Model.DischargeDateAndTime)</div>

    <div class="display-label">AdmissionType</div>
    <div class="display-field">@Html.DisplayTextFor(_ => Model.AdmissionType).ToString()</div>

    <div class="display-label">Patient</div>
    <div class="display-field">@(Model.Patient == null ? "None" : Model.Patient.Title)</div>

    <div class="display-label">ReferredBy</div>
    <div class="display-field">@(Model.ReferredBy == null ? "None" : Model.ReferredBy.Title)</div>

    <div class="display-label">Status</div>
    <div class="display-field">@Html.DisplayTextFor(_ => Model.Status).ToString()</div>

    <div class="display-label">Insurances</div>
    <div class="display-field">@(Model.Insurances == null ? "None" : Model.Insurances.Count.ToString())</div>

    <div class="display-label">Representatives</div>
    <div class="display-field">@(Model.Representatives == null ? "None" : Model.Representatives.Count.ToString())</div>

    <div class="display-label">Assignments</div>
    <div class="display-field">@(Model.Assignments == null ? "None" : Model.Assignments.Count.ToString())</div>

    <div class="display-label">Informations</div>
    <div class="display-field">@(Model.Informations == null ? "None" : Model.Informations.Count.ToString())</div>

    <div class="display-label">Diagnosises</div>
    <div class="display-field">@(Model.Diagnosises == null ? "None" : Model.Diagnosises.Count.ToString())</div>

    <div class="display-label">Tests</div>
    <div class="display-field">@(Model.Tests == null ? "None" : Model.Tests.Count.ToString())</div>

    <div class="display-label">Services</div>
    <div class="display-field">@(Model.Services == null ? "None" : Model.Services.Count.ToString())</div>

    <div class="display-label">Radiologies</div>
    <div class="display-field">@(Model.Radiologies == null ? "None" : Model.Radiologies.Count.ToString())</div>
</fieldset>
<p>
    @Html.ActionLink("Edit", "Edit", new { id=Model.ID }) |
    @Html.ActionLink("Back to List", "Index")
</p>


